<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="对外接口管理">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--}-->
                        <div id="main" class="clearfix">
                            <form action="/admin/api/setRights.html" method="post" >

                                <p style="margin-bottom:14px;">角色名称:<strong>${roleName!''}</strong></p>
                                <div>全选<input type="checkbox" id="chk_all"/></div>
                                <div class="customer-info">
                                    <ul class="title-c">
                                        <li>
                                            <div class="v clearfix">
                                                <#list roleServiceBeanList as item>
                                                    <#if item?? >
                                                        <label>
                                                            <input type="checkbox" value="${item.arsId?c}" name="arsIds"  <#if item.isAssign ==1>checked<#else></#if>/>
                                                            ${item.servicename!''}
                                                        </label>
                                                        <#if (item_index+1)%6==0>
                                                            <br>
                                                        </#if>
                                                    </#if>
                                                </#list>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                                <div id="bottomToolbar" class="clearfix">
                                    <input type="hidden"  name="page" value="${page}" />
                                    <input type="hidden"  name="roleId" value=${roleId}>
                                    <input type="hidden"  name="searchName" value="${searchName}" />
                                    <input type="submit" value="提交" class="input-button post" />
                                </div>
                            </form>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <script type="text/javascript">
        $("#chk_all").click(function(){
            $("input[name='arsIds']").attr("checked",$(this).attr("checked"));
        });
    </script>
    <#include "../jsPage.html">
    </body>
</html>

